-- GENERATED SPELL FOR [Scorned Spirit of Earth] --


function spell0_21129(pUnit, Event) --@Call to the Spirits,Self--
pUnit:FullCastSpellOnTarget(36206,pUnit)
pUnit:RegisterEvent('Sorts_21129', 675, 1)
end

function Sorts_21129(pUnit, Event)
local choix_sorts_21129 = math.random(0, 0)
if choix_sorts_21129 == 0 then
pUnit:RegisterEvent('spell0_21129', 1, 1)
end
end

function mob21129_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21129', math.random(1500, 3000), 1)
end

function mob21129_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21129_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21129_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21129, 1, 'mob21129_Action')
RegisterUnitEvent(21129, 2, 'mob21129_Leave')
RegisterUnitEvent(21129, 3, 'mob21129_Kill')
RegisterUnitEvent(21129, 4, 'mob21129_Die')
